package io.binghe.rpc.common.scanner.reference;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author binghe
 * @version 1.0.0
 * @description 存在@RpcReference注解字段代理实例的上下文
 */
public class RpcReferenceContext {

    private static volatile Map<String, Object> instance;

    static {
        instance = new ConcurrentHashMap<>();
    }

    public static void put(String key, Object value) {
        instance.put(key, value);
    }

    public static Object get(String key) {
        return instance.get(key);
    }

    public static Object remove(String key) {
        return instance.remove(key);
    }

}
